﻿Public Class EditWorkshopA
    Inherits System.Web.UI.Page
    Private Shared prevPage As String = String.Empty
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If (Not IsPostBack) Then
            prevPage = Request.UrlReferrer.ToString()
        End If
    End Sub

    Protected Sub viewEnrolemntButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles viewEnrolemntButton.Click
        'get the person's info from the data base and send it to 
    End Sub

    Protected Sub saveButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles saveButton.Click
        'update SQL
        ''refresh page then 
    End Sub

    Protected Sub cancelButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cancelButton.Click
        Response.Redirect(prevPage)
    End Sub

    

    Protected Sub backButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles backButton.Click
        Response.Redirect(prevPage)
    End Sub

    Protected Sub homeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles homeButton.Click
        Response.Redirect("/User_View/AdminView/AdminHome.aspx")
    End Sub
End Class